package com.techburg.xbrl.client;

import com.google.gwt.dom.client.Style.Unit;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.DecoratorPanel;
import com.google.gwt.user.client.ui.SimplePanel;
import com.google.gwt.user.client.ui.TabLayoutPanel;
import com.google.gwt.user.client.ui.TextArea;

public class XBRLContentWidget extends Composite {
  
  
  
  public XBRLContentWidget() {
    /*DecoratorPanel decorPanel = new DecoratorPanel();
    decorPanel.setWidth("100%");
    decorPanel.setHeight("100%");*/
    //
    TabLayoutPanel tabPanel = new TabLayoutPanel(2.5, Unit.EM);
    tabPanel.setAnimationDuration(1000);
    tabPanel.getElement().getStyle().setMarginBottom(10.0, Unit.PX);
    
    SimplePanel rawDataPanel = new SimplePanel();
    TextArea rawData = new TextArea();
    rawData.setText("The raw XML data will display here.");
    rawDataPanel.add(rawData);
    tabPanel.add(rawDataPanel, "Raw XML");
    
    tabPanel.add(new SimplePanel(), "Interactive data");
    //decorPanel.add(tabPanel);
    initWidget(tabPanel);
  }

}
